package edu.webtek.cloudreq;

import org.jdom2.Document;
import org.jdom2.Element;

public class ReqAdjustItemStock extends ReqBase{
	private final String shopKey;
	private final int itemID, adjustment;
	
	
	public ReqAdjustItemStock(String shopKey, int itemID, int adjustment) {
		super();
		this.shopKey = shopKey;
		this.itemID = itemID;
		this.adjustment = adjustment;
	}


	@Override
	public Document toDocument() {
		Element shopKey = createElement("shopKey", this.shopKey);
		Element itemID = createElement("itemID", this.itemID);
		Element adjustment = createElement("adjustment", this.adjustment);
		
		Element adjustItemStock = createElement("adjustItemStock", shopKey, itemID, adjustment);
		
		return new Document(adjustItemStock);
	}

}
